// import axios from 'axios'
// axios.defaults.baseURL = process.env.VUE_APP_URL

// 导入副本并使用
import request from '@/utils/request.js'

export function authorizationsPost (data) {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data: data
  })
}
export function userProfile () {
  return request({
    url: '/v1_0/user/profile'
    // headers: {
    //   Authorization: `Bearer ${getItem()}`
    // }
  })
}
// 定义频道列表api
export function channels () {
  return request({
    url: '/v1_0/channels'
  })
}
// 定义文章列表api
export function mpArticles (params) {
  return request({
    url: '/v1_0/mp/articles',
    params
  })
}
